﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KaiXin.DTO.Tycoon;

namespace KaiXin.BLL.Interface
{
    /// <summary>
    /// 委托订单接口
    /// </summary>
    public interface IOrder
    {
        /// <summary>
        /// 返回当前用户订单
        /// </summary>
        /// <returns></returns>
        List<Orders> GetMyOrders();
        /// <summary>
        /// 创建用户默认委托单
        /// </summary>
        /// <param name="func">过滤委托</param>
        void CreateDefaultOrders(Func<Goods, bool> func);
        /// <summary>
        /// 设置，修改，添加委托订单
        /// </summary>
        /// <param name="order"></param>
        void SetOrder(Orders order);
        /// <summary>
        /// 删除订单
        /// </summary>
        /// <param name="order"></param>
        void DelOrder(Orders order);
    }
}
